package com.tedu.cooshark.dao;

import com.tedu.cooshark.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 2022/3/24  14:07
 */
@Mapper
public interface CategoryMapper {
   List<Category> selectAll();
   int insert(@Param("category") Category category);
   int deleteById(int id);
   Category selectById(int id);
   int updateCategory(@Param("category") Category category);
}
